﻿@typeparam TEntity
@typeparam TResourceType
@using Volo.Abp.Localization
@inherits ExtensionPropertyComponentBase<TEntity, TResourceType>


@if (PropertyInfo != null && Entity != null)
{
    <AutoFill 
              @bind-Value="SelectedValue"
              Items="lookupItems"
              OnCustomFilter="SearchFilterChangedAsync"
              OnSelectedItemChanged="SelectedValueChanged"
              OnGetDisplayText="item => item.Text"
              ValidateRules="@CustomerRules"
              ShowLabel="true"
              DisplayText="@PropertyInfo.GetLocalizedDisplayName(StringLocalizerFactory)">
    </AutoFill>
}